package cn.hloger.spider.utils;

import cn.hloger.spider.demo.chatgptDemo.bean.resp.ChatApiResp;

import java.util.Collections;

;

/**
 * TODO
 *
 * @author huanglong
 * @Description TODO
 * @data 2022/9/13
 */
public class ChatUtils {

    public static ChatApiResp renderChatResp(String content) {
        ChatApiResp.ChatData newsData = new ChatApiResp.ChatData();
        newsData.setContent(content);
        ChatApiResp newsResp = new ChatApiResp();
        newsResp.setData(Collections.singletonList(newsData));
        return newsResp;
    }
}
